package com.baosight.sczx.common.zp;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baosight.iplat4j.core.spring.SpringApplicationContext;
import com.baosight.iplat4j.dao.Dao;

public class ZPUtils 
{
	public static final String USER_COMPANY_ID = "root00";//组织机构根节点ID
	private static Dao dao = (Dao)SpringApplicationContext.getBean("dao");
	
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static String getFormCname( String formEname )
	{
		Map param = new HashMap();
		param.put( "form_ename", formEname );
		
		String formCname = "";
		
		List forms = dao.query("EDFA00.query", param );
		if( forms.size() > 0 )
		{
			Map form =  ( Map )forms.get( 0 );
			formCname = ( String )form.get( "form_cname" );
		}
		
		return formCname;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		// TODO Auto-generated method stub

	}

}
